﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GanttDashboardUserControl.ascx.cs"
    Inherits="com.stifel.ProjectMgmt.GanttDashboardUserControl" %>
<%--START: CSS and JS--%>
<link type="text/css" rel="Stylesheet" media="all" href="/_layouts/com.stifel.ProjectMgmt/stylesheets/ProjectMgmt.css" />
<link type="text/css" rel="Stylesheet" media="all" href="/_layouts/com.stifel.ProjectMgmt/stylesheets/tooltip.css" />
<script src="/_layouts/com.stifel.ProjectMgmt/scripts/jquery-1.4.1.min.js" language="javascript"
    type="text/javascript"></script>
<script src="/_layouts/com.stifel.ProjectMgmt/scripts/tooltip.js" language="javascript"
    type="text/javascript"></script>
<script language="javascript" type="text/javascript">
// <![CDATA[
    function onShowByDueDateClick() {
        var o = document.getElementById("uiShowByDueDateClick");
        o.checked = !o.checked;
    }
    function onShowOnlyImpactedProjectsClick() {
        var o = document.getElementById("uiShowOnlyImpactedProjects");
        o.checked = !o.checked;
    }
// ]]>
</script>
<%--END: CSS and JS--%>
<%--START: http://msdn.microsoft.com/en-us/library/ee231545.aspx--%>
<asp:HiddenField ID="SharePoint_Project_FileNameWithoutExtension" Value="$SharePoint.Project.FileNameWithoutExtension$"
    runat="server" />
<asp:HiddenField ID="SharePoint_Project_AssemblyFullName" Value="$SharePoint.Project.AssemblyFullName$"
    runat="server" />
<asp:HiddenField ID="SharePoint_ProjectItem_Name" Value="$SharePoint.ProjectItem.Name$"
    runat="server" />
<%--END: http://msdn.microsoft.com/en-us/library/ee231545.aspx--%>
<div>
    <table>
        <tr>
            <td valign="middle">
                <asp:Literal ID="uiLblYear" runat="server" Text="Year and Quarter:"></asp:Literal>
            </td>
            <td>
                <asp:DropDownList ID="uiYear" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;&nbsp;<span onclick="onShowByDueDateClick();"><asp:CheckBox ID="uiShowByDueDate"
                    runat="server" TextAlign="Left" Text="Show projects by due date?" /></span>
            </td>
            <td>
                &nbsp;&nbsp;<span onclick="onShowOnlyImpactedProjectsClick();"><asp:CheckBox ID="uiShowOnlyImpactedProjects"
                    runat="server" TextAlign="Left" Text="Show only projects with impact within quarter?" /></span>
            </td>
            <td>
                &nbsp;&nbsp;<asp:Button ID="uiOk" runat="server" Text="Go" OnClick="uiOk_Click" />
            </td>
        </tr>
    </table>
    <asp:Literal ID="uiLblCurrentSelection" runat="server"></asp:Literal>
    <asp:PlaceHolder ID="uiProjectGantt" runat="server"></asp:PlaceHolder>
</div>
<asp:Literal ID="uiNumberOfSites" runat="server"></asp:Literal>
